package vfc.model
{
	import mx.collections.ArrayCollection;

	import vfc.model.valueObjects.Area;
	/*import vfc.model.valueObjects.ServiceType;*/
	import vfc.model.valueObjects.Site;

	[Bindable]
	public class SiteSearchModel
	{

		public function SiteSearchModel()
		{
		}

		public var sites:ArrayCollection = new ArrayCollection();
		public var searchedCity:String;
		public var searchedZip:int;

		private var streets:Array = ["S 1st St", "S 2nd St", "S 3rd St", "S 4th St", "S 5th St", "S 6th St", "S 7th St", "S 8th St", "S 9th St", "S 10th St", "S 11th St"];


		public function getDummyData(zip:String):Array{
			return [];
			
			var returnArray:Array = new Array();
			/*var service:ServiceType = new ServiceType();
				service.serviceType = "Hot Meals";*/
			var area:Area = new Area();
				area.city = "San Jose";
				area.state = "CA";
				area.zip = 95101;
			for(var i:int = 1; i < 10; i++){
				var site:Site = new Site();
					site.area = area;
					
			 		/* site.contactName1 = "John Smith" + i;
					site.contactPhone1 = "(555)-555-5555";
					 site.contactName2 = "Jane Smith" + i;
					site.contactPhone2 = "(444)-444-4444"; */
					site.crossStreet = "Some Street Name";
					site.fax = "(333)-333-3333";
					site.notes = "A lot of notes";
					site.name = "Site " + i;
					site.streetName = streets[i];
					site.streetNumber = i + "" + i + "" + i;
					/*site.services.push(service);*/
				returnArray.push(site);
			}
			return returnArray;
		}
	}
}